<template>
  <div class="box">
    <form>
      <h1 class="title">昵称：</h1>
      <input type="text" class="import" :value="nickname" @input="input" />
      <button class="save" @click="save">保存</button>
    </form>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      nickname: "ssss",
    };
  },

  components: {},

  methods: {
    input(e) {
     this.nickname=e.detail.value
    },
    save() {
    //   this.$emit("save", this.nickname);
    },
  },
};
</script>

<style scoped>
.box {
  width: 100%;
  height: 100%;
  background-color: #eee;
}
.title {
  background-color: #fff;
}
.import {
  height: 100rpx;
  padding: 20rpx 30rpx;
  background-color: #fff;
}
.save {
  margin: 40rpx 30rpx;
  color: #fff;
  background-color: red;
}
</style>